<template>
  <table class="my-table">
    <thead>
      <slot name="thead"></slot>
    </thead>
    <tbody>
      <tr v-for="(item, index) in data" :key="item.id">
        <slot name="tbody" :row="item" :index="index"></slot>
      </tr>
    </tbody>
  </table>
</template>

<script>

export default {
  props: {
    data: {
      type: Array,
      required: true
    }
  },
  components: {},
  data() {
    return {}
  },
  methods: {}
}
</script>

<style>

</style>
